package org.drushpal.view.tabs
{
	import flash.events.MouseEvent;
	
	import mx.binding.utils.BindingUtils;
	
	import org.drushpal.model.enum.DrushCommand;
	import org.drushpal.service.DrushService;
	import org.drushpal.service.DrushServiceEvent;
	import org.robotlegs.mvcs.Mediator;
	
	import spark.components.ComboBox;
	
	public class VariablesTabMediator extends Mediator
	{
		[Inject]public var variablesTab:VariablesTab;
		[Inject]public var drushService:DrushService;

		override public function onRegister():void{				
			drushService.run(DrushCommand.VARIABLE_GET);
			BindingUtils.bindProperty(variablesTab.dgVariables,"dataProvider",drushService,"variablesCollection");
		}
	}
}